package com.yh.create.build_pattern.Demo1;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-13 12:40
 * @problem:
 **/
public class Direct {
    private Build build;

    public Direct(Build build) {
        this.build = build;
    }


    public Person gerPerson() {
        build.setBody();
        build.setFoot();
        return build.getPersion();
    }
}
